<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>浏览图片 - 阿里芝麻网络相册</title>
<link rel="stylesheet" type="text/css" href="css/common.css" />
<script type="text/javascript" src="js/common.js"></script>
<script src="js/prototype.js" type="text/javascript"></script>
<script src="js/scriptaculous.js?load=effects" type="text/javascript"></script>
<script src="js/lightbox.js" type="text/javascript"></script>
<link href="css/default.css" rel="stylesheet" type="text/css" />
<link href="css/lightbox.css" rel="stylesheet" type="text/css"
	media="screen" />
</head>
<body>
<div id="container">#parse("navigation.html")
<div id="content2">
<h1 class="title">浏览图片-$!{image.title}</h1>
<p>浏览数：$!{image.visitAmount} 创建日期：$dateTool.format("SHORT", $!{image.createTime}) 隐私类型：
#if($!{image.privacy}=='0') 公开 #elseif($!{image.privacy}=='1') 好友可见
#else保密 #end
<p><a href="userHome.html?userId=$!{image.userId}">$!{user.nickName}的个人主页</a>
/<a href="showAlbum.html?albumId=$!{image.albumId}">返回相册</a></p>
<p><img alt="$!{image.title}" src="readImage.html?id=$!{image.url}m"></p>
<p>图片描述：$!{album.description}</p>
<p><a href="readImage.html?id=$!{image.url}l">查看原图</a>#if($!{userId}==$!{image.userId})
<a href="editImage.html?imageId=$!{image.id}">修改图片信息</a> <a
	href="imageTag.html?imageId=$!{image.id}">标签管理</a> <a
	href="setCover.html?imageId=$!{image.id}">设为封面</a> #elseif($!{userId}
&& $!{userId} != $!{image.userId}) <a
	href="collectImage.html?imageId=$!{image.id}&url=$!{image.url}">收藏该图片</a>
#end</p>
<h1 class="title">评论</h1>
<table width="600" border="0" cellpadding="5" cellspacing="0">
	#foreach($comment in $commentList)
	<tr>
		<td rowspan="2"><img src="readImage.html?id=$!{comment.headPic}"></td>
		<td><b>#if($!{comment.userId}==0) 游客：$!{comment.nickName}
		#else <a href="userHome.html?userId=$!{comment.userId}">$!{comment.nickName}</a>
		#end</b> &nbsp;&nbsp;&nbsp;&nbsp;$dateTool.format("SHORT",
		$!{comment.createTime})&nbsp;&nbsp;&nbsp;&nbsp;
		#if($!{image.userId}==$!{userId})<a
			href="deleteComment.html?commentId=$!{comment.id}">删除</a>#end</td>
	</tr>
	<tr>
		<td>$!{comment.content}</td>
	</tr>
	<tr>
		<td colspan="2">#end 我来评论<br />
		#if($!{nickName})
		<form method="post" action="imageDetail.html?imageId=$!{image.id}">
		<textarea rows="6" cols="30" name="content"></textarea> <br />
		<input type="submit" name="submit" value="提交" /></form>
		#else
		<form method="post" action="imageDetail.html?imageId=$!{image.id}">
		昵称：<input type="text" name="nickName" value="" /> <br>
		<textarea rows="6" cols="30" name="content"></textarea> <br />
		<input type="submit" name="submit" value="提交" /></form>
		#end</td>
	</tr>
</table>
</div>
#parse("footer.html")</div>
</body>
</html>
